package com.resume.crm01.mapper;

import com.resume.crm01.model.CourseBook;
import com.resume.crm01.model.MonthIncome;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface CourseBookMapper {
    /**
     * 返回记录数据
     * @param map
     * @return
     */
    public int findCountByMap(Map<String,Object> map);

    /**
     * 返回数据列表
     * @param map
     * @return
     */
    public List<CourseBook> findListByMap(Map<String,Object> map);

    public void insert(CourseBook book);

    public CourseBook findByBookId(String id);

    public void deleteByBookId(String id);

    public void update(CourseBook book);

    public List<MonthIncome> getMonthIncomes();
}
